/********************************************************************************
 *      Copyright:  (C) 2024 LingYun<iot25@lingyun>
 *                  All rights reserved.
 *
 *       Filename:  socket_cnn.h
 *    Description:  This file 
 *
 *        Version:  1.0.0(07/12/24)
 *         Author:  LingYun <iot25@lingyun>
 *      ChangeLog:  1, Release initial version on "07/12/24 18:14:55"
 *                 
 ********************************************************************************/
#ifndef _SOCK_CNN_H
#define _SOCK_CNN_H

#include "socket_cnn.h"

int client_connect_to_server(char *ipaddr,int port);
int server_connect_to_client(int port);
int write_data(int socket_fd,const char *data,int data_len);
int read_data(int socket_fd,const char *data,int data_len);
int cnn_status(int client_fd);
int cnn_retry(int *client_fd,char *ipaddr,int port);
void close_socket(int socket_fd);


#endif

